<#assign sec=JspTaglibs["/WEB-INF/tlds/spring-security.tld"]>
<div class="head">
	<div class="logo"><a href="${base}/"><img src="${base}/images/logo.jpg"></a></div>
<div class="head_right">
    	<div class="login">
			<@sec.authorize ifAnyGranted="ROLE_ADMIN,ROLE_DEVELOPER">
				<span class="#"><a href="${base}/admin/index.do">后台管理</a></span>
			</@sec.authorize>
			<@sec.authorize ifAnyGranted="ROLE_USER,ROLE_ADMIN,ROLE_DEVELOPER">
				<span class="#"><a href="${base}/ucenter/index.do"><@sec.authentication property='principal.username' />　欢迎来到洛卡网！</a></span>
	    		<span class="#"><a href="${base}/logout.do">退出</a></span>
			</@sec.authorize>
			<@sec.authorize ifNotGranted="ROLE_USER,ROLE_ADMIN,ROLE_DEVELOPER">
				<span class="#"><a href="${base}/login.do">请登录</a></span>
	    		<span class="#"><a href="${base}/register.do">注册新会员</a></span>
			</@sec.authorize>
    		<span class="shouye"><a href="javascript:void(0);" onclick="SetHome(this,window.location)">设为首页</a></span>
    		<span class="shoucang"><a href="javascript:void(0)" onclick="AddFavorite('${base}/index.do','洛卡网');">收藏本站</a></span>
    	</div>
        <div class="search">
	        <form method="post" action="/article/search.jsp" id="search_form">
	        	<input type="text" class="in" name="keyword" id="search_keyword">
	        	<input type="hidden" value="1" name="pno">
	        	<input type="submit" name="" class="sousuo" value="">
        	</form>
        </div>
    </div>
</div>
<div class="mainnav">
	<ul class="navbg">
		<li>
			<a href="${base}/">首页</a>
		</li>
		<li>
			<a href="<%=SiteUrlUtil.getArticleChanelPageUrl(dtzxCatalogId) %>">
				<span>低碳资讯</span>
		    </a>
		</li>
        <li>
			<a href="<%=SiteUrlUtil.getArticleChanelPageUrl(dtznCatalogId) %>">
				低碳指南
			</a>
		</li>
		<li>
			<a href="<%=SiteUrlUtil.getArticleChanelPageUrl(dtwlCatalogId) %>">
				低碳未来
			</a>
		</li>
		<li>
			<a href="<%=SiteUrlUtil.getArticleChanelPageUrl(lkshCatalogId) %>">
				低碳生活
			</a>
		</li>
		<li>
			<a href="<%=SiteUrlUtil.getArticleChanelPageUrl(lkxdCatalogId) %>">
				洛卡行动
			</a>
		</li>
		<li>
			<a href="<%=SiteUrlUtil.getArticleChanelPageUrl(lkxyCatalogId) %>">
			洛卡学院
			</a>
		</li>
		<li>
			<a href="<%=SiteUrlUtil.getArticleChanelPageUrl(lkzxCatalogId) %>">
				洛卡之星
			</a>
		</li>
		<li>
			<a href="<%=request.getContextPath() %>/special/index.jsp">
				洛卡专题
			</a>
		</li>
		<li>
			<a href="<%=request.getContextPath() %>/ebook/index.jsp">
				电子杂志
			</a>
		</li>
    </ul>
</div>
<div class="nav_sencond">
	<div class="nav_L"></div>
	<div class="nav_C">
    	<div class="scroll_slogan">            
                <div id="TextBox" style="position: relative; overflow: hidden; height: 30px;">
                    <ul style="position: relative; white-space: normal; overflow: hidden; list-style-type: none; margin: 0pt; padding: 0pt; height: 80px;">
                        <li style="white-space: normal; display: block; overflow: hidden;;float:none;undefined;float:none;">低碳：英文为lowcarbon。意指较低（更低）的温室气体（二氧化碳为主）排放。  <a target="_blank" href="#">[进入洛卡百科]</a></li>
                    <li style="white-space: normal; display: block; overflow: hidden;;float:none;undefined;float:none;">低碳：英文为lowcarbon。意指较低（更低）的温室气体（二氧化碳为主）排放。  <a target="_blank" href="#">[进入洛卡百科]</a></li></ul>
                 </div> 
         </div>
         <div class="nav_sencond_R">
         	<ul>
            	<li><a href="http://www.mylowca.com" target="_blank">洛卡商城</a></li>
                <li><a href="http://bbs.lowca.com" target="_blank">洛卡论坛</a> </li>
                <li><a href="http://www.lowcazone.com/" target="_blank">洛卡计算器</a></li>
           </ul>
         </div>
    </div>
  	<div class="nav_R"></div>
</div>
<script type="text/javascript" src="${base}/js/lib/jquery.js"></script><!--Jquery库 -->
<script type="text/javascript" src="${base}/js/lib/marquee.js"></script><!--滚动js -->
<script type="text/javascript">
//全站搜索绑定
$(function(){
	$("#search_form").unbind("submit");
	$("#search_form").submit(function(){
		var keyword = $("#search_keyword").val();
		if(keyword==null || $.trim(keyword).length==0) {
			alert("请输入搜索关键词");
			$("#search_keyword").focus();
			return false;
		}
		return true;
	});
});
function AddFavorite(sURL, sTitle)
{
    try
    {
        window.external.addFavorite(sURL, sTitle);
        alert("添加收藏成功！");
    }
    catch (e)
    {
        try
        {
            window.sidebar.addPanel(sTitle, sURL, "");
            alert("添加收藏成功！");
        }
        catch (e)
        {
            alert("加入收藏失败，请使用Ctrl+D进行添加");
        }
    }
}
//头部特效
$("#TextBox").YlMarquee({
	width:320,
    height:30,
    visible: 1,
    step:1,
    vertical:"true"
});
/* nav change */
$(function(){

	$('ul.nav li:first').hover(
			function(){
				if($(this).attr('selected')!='true')
					$(this).addClass("s");
			},function(){
				if($(this).attr('selected')!='true')
					$(this).removeClass();
				}
		);
	
		$('ul.nav li:last').hover(
			function(){
					if($(this).attr('selected')!='true')
						$(this).addClass("e1");
				},function(){
					if($(this).attr('selected')!='true')
						$(this).removeClass();
				}
		);
		$('ul.nav li:not(:last):not(:first)').hover(
			function(){
					if($(this).attr('selected')!='true')
						$(this).addClass("c1");
				},function(){
					if($(this).attr('selected')!='true')
						$(this).removeClass();
				}
		);
		
		
	})
</script>